package com.fyx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fyx.annotation.Query;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Transient;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
* <p>
    *
    * </p>
*
* @author 方扬秀
* @since 2020-12-24
*/
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class ChannelLtv implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<Timestamp> qTime;

    @TableField(exist = false)
    private Long deptId;

    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    @TableField(exist = false)
    private Set<Long> deptIds = new HashSet<>();

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long time;

    private String channel;

    private Integer totalCharge;

    private Integer regNum;

    private Integer totalCharge1;
    private Integer totalCharge2;
    private Integer totalCharge4;
    private Integer totalCharge5;
    private Integer totalCharge6;

    private Integer regNum1;

    private Integer totalCharge3;

    private Integer regNum3;

    private Integer totalCharge7;

    private Integer regNum7;

    private Integer totalCharge14;

    private Integer regNum14;

    private Integer totalCharge30;

    private Integer regNum30;

    private Integer totalCharge60;
    private Integer totalCharge90;
    private Integer totalCharge120;
    private Integer totalCharge150;
    private Integer totalCharge180;
    private Integer totalCharge210;
    private Integer totalCharge240;
    private Integer totalCharge270;
    private Integer totalCharge300;
    private Integer totalCharge330;
    private Integer totalCharge360;
}
